AstViewer
Base classes
| Name | Children | Inherits |
|---|---|---|
| Splitter prettyqt.widgets.splitter Implements a splitter widget. |
|
⋔ Inheritance diagram
graph TD
764571958["custom_widgets.AstViewer"]
3002750695["widgets.Splitter"]
2122975160["widgets.SplitterMixin"]
1689631995["widgets.FrameMixin"]
829357528["widgets.WidgetMixin"]
3227531497["core.ObjectMixin"]
2751680898["builtins.object"]
625385617["gui.PaintDeviceMixin"]
2174143683["QtWidgets.QSplitter"]
3822057598["QtWidgets.QFrame"]
3620195106["QtWidgets.QWidget"]
3984060476["QtCore.QObject"]
37984305["Shiboken.Object"]
673956333["QtGui.QPaintDevice"]
3002750695 --> 764571958
2122975160 --> 3002750695
1689631995 --> 2122975160
829357528 --> 1689631995
3227531497 --> 829357528
2751680898 --> 3227531497
625385617 --> 829357528
2751680898 --> 625385617
2751680898 --> 829357528
2751680898 --> 1689631995
2751680898 --> 2122975160
2174143683 --> 3002750695
3822057598 --> 2174143683
3620195106 --> 3822057598
3984060476 --> 3620195106
37984305 --> 3984060476
2751680898 --> 37984305
673956333 --> 3620195106
37984305 --> 673956333
🛈 DocStrings
Bases: Splitter
Widget which displays an AST Tree next to the corresponding source code.
Selecting a node in the tree will highlight the corresponing text section in source.
Source code in prettyqt/custom_widgets/astviewer.py
rename_variable(old: str, new: str, ignore: list[str] | None = None, scope: list[str] | None = None)
Rename all identifiers named old to new (see AstModel.rename_variable).